package com.msdemo.order.service.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
* @comments
* @author zg
* @date 2017年10月16日
*/
@FeignClient("service-user")
public interface UserServiceClient {

	/**
	 * 调用“用户服务”为用户增加积分
	 * @author zg
	 * @date 2017年9月28日
	 * @param userName
	 * @param goodsId
	 * @return
	 */
	@RequestMapping(value = "/user/integral", method = RequestMethod.GET)
	public String integral( @RequestParam(value = "userName", required = true) String userName,
							@RequestParam(value = "integral", required = true) Integer integral);
}
